package com.example.pixelyear.Interface;

import android.view.View;
import com.example.pixelyear.utils.Utils;


/**
 * Package    : com.zjedu.xueyuan.callback
 * ClassName  : onDoubleClickListener
 * Description: $重写的防止双击的方法
 * Date       : 2019/5/17 8:54
 */
public abstract class onDoubleClickListener implements View.OnClickListener {

    @Override
    public void onClick(View v) {
        if (!Utils.isFastDoubleClick()) {
            onDoubleClick(v);
        } else
            Utils.showToast("慢一点哦～");
    }

    protected abstract void onDoubleClick(View view);
}
